package com.swotxu.oldwebproject.redis.conf;

import redis.clients.jedis.JedisPoolConfig;

/**
 * redis 配置信息实体
 *
 * @Date: 2021/3/24 0024 10:05
 * @Author: swotxu
 */
public class RedisConfig {

    private String host;
    private int port;
    private String password;
    private int database;
    private int maxActive;
    private int maxWait;
    private int maxIdle;
    private int timeOut;
    private int sessionInactiveInterval;
    private JedisPoolConfig connectionConfig;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getDatabase() {
        return database;
    }

    public void setDatabase(int database) {
        this.database = database;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getMaxActive() {
        return maxActive;
    }

    public void setMaxActive(int maxActive) {
        this.maxActive = maxActive;
    }

    public int getMaxWait() {
        return maxWait;
    }

    public void setMaxWait(int maxWait) {
        this.maxWait = maxWait;
    }

    public int getMaxIdle() {
        return maxIdle;
    }

    public void setMaxIdle(int maxIdle) {
        this.maxIdle = maxIdle;
    }

    public int getTimeOut() {
        return timeOut;
    }

    public void setTimeOut(int timeOut) {
        this.timeOut = timeOut;
    }

    public int getSessionInactiveInterval() {
        return sessionInactiveInterval;
    }

    public void setSessionInactiveInterval(int sessionInactiveInterval) {
        this.sessionInactiveInterval = sessionInactiveInterval;
    }

    public JedisPoolConfig getConnectionConfig() {
        return connectionConfig;
    }

    public void setConnectionConfig(JedisPoolConfig connectionConfig) {
        this.connectionConfig = connectionConfig;
    }
}
